package com.qwert.shortlink.admin.common.enums;

import com.qwert.shortlink.admin.common.convention.error.IErrorCode;

/**
 * @author qwert
 * @version 1.0.0
 * @create 2024/6/25 11:41
 **/
public enum UserErrorCode implements IErrorCode {
    USER_TOKEN_FAIL("A000200", "用户Token验证失败"),
    USER_NULL("B000200","用户记录不存在"),
    USER_NAME_EXIST("B000201", "用户名已存在"),
    USER_EXIST("B000202", "用户已存在"),
    USER_SAVE_ERROR("B000203", "保存用户失败");

    private final String code;

    private final String message;

    UserErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }
    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
